#ifndef FREQ_H_
#define FREQ_H_

#include<stdio.h>
#include<stdlib.h>
#include<string.h>
// #include<constant.h>
#define NUMLETTER 128

typedef struct
{
    char value;
    int freq;
}CharFreq;

// -统计字符数 存储在数组frequencies里面
int countFrequency(char * filename,CharFreq * frequencies);

void printFrequency(CharFreq * frequencies);

void sortFrequency(CharFreq * frequencies);

#endif  //!FREQ_H_